package com.ffs.game.scene.obj.ai;

/**
 * AI数据类
 *
 * @author ffs80
 */
public class AIData {

    /**
     * 出生时间
     */
    private long bornTime;

    /**
     * 巡逻间隔
     */
    private int patrolInterval;

    /**
     * 死亡时间
     */
    private long dieTime;

    /**
     * 复活时间
     */
    private long reviveTime;

    /**
     * 睡眠时间（复活状态转巡逻状态间隔）
     */
    private int sleepTime;

    /**
     * 我的攻击目标
     */
    private long attackTarget;

    public long getBornTime() {
        return bornTime;
    }

    public void setBornTime(long bornTime) {
        this.bornTime = bornTime;
    }


    public void updateTime(int delta) {
        patrolInterval -= delta;
        sleepTime -= delta;
    }

    public int getPatrolInterval() {
        return patrolInterval;
    }

    public void setPatrolInterval(int patrolInterval) {
        this.patrolInterval = patrolInterval;
    }

    public long getDieTime() {
        return dieTime;
    }

    public void setDieTime(long dieTime) {
        this.dieTime = dieTime;
    }

    public long getReviveTime() {
        return reviveTime;
    }

    public void setReviveTime(long reviveTime) {
        this.reviveTime = reviveTime;
    }

    public int getSleepTime() {
        return sleepTime;
    }

    public void setSleepTime(int sleepTime) {
        this.sleepTime = sleepTime;
    }

    public long getAttackTarget() {
        return attackTarget;
    }

    public void setAttackTarget(long attackTarget) {
        this.attackTarget = attackTarget;
    }
}
